package service.impl;

import mapper.UserMapper;
import org.springframework.stereotype.Service;
import pojo.User;
import service.UserService;

import javax.annotation.Resource;

/**
 * Created by 79430 on 2019/1/3.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;


    @Override
    public Integer deleteUserByRoleId(int userRole) {
        return userMapper.deleteUserByRoleId(userRole);
    }

    @Override
    public User Login(User user) {
        return userMapper.login(user);
    }
}
